package com.briup.product_source.service;

import com.briup.product_source.exception.ServiceException;
import com.briup.product_source.pojo.ManagerAnimal;
import com.briup.product_source.pojo.ext.ManagerAnimalExt;
import com.github.pagehelper.PageInfo;

public interface ManagerAnimalService {

    /**
     * 分页/条件查询动物信息
     * @param aHealthy 健康状态
     * @param aGender 动物性别
     * @param pageNum 当前页码
     * @param pageSize 每页大小
     * @return com.github.pagehelper.PageInfo<ManagerAnimalExt>
     * @throws ServiceException
     */
    PageInfo<ManagerAnimalExt> getAllByConditionByPage(String aHealthy, String aGender, Integer pageNum, Integer pageSize) throws ServiceException;

    /**
     * 新增/修改动物信息
     * @param managerAnimal com.briup.jd2511.jd2511_product_source.pojo.ManagerAnimal
     * @throws ServiceException
     */
    void saveOrUpdate(ManagerAnimal managerAnimal) throws ServiceException;
}
